Ext.define('ExtJs.view.system.module.Systeminfo',{
	extend:'Ext.form.Panel',
	alias : 'widget.systeminfo',
	 border: false,
  bodyStyle: 'background-color:transparent;',
  
   items: [{
            border: false,
            bodyStyle: 'padding:5px;background-color:transparent;',
           // url: '../servlet/wareHouse.update',
            items:[{
            	xtype:'textfield',
            			id:'name',	
            			name:'warehouse.name',
                fieldLabel: '库房名称',
                anchor:'95%',
                allowBlank:false,
                maxLength: 20
          },{
        	   xtype:'textfield',
        	   	id:'linkman',
        	   	name:'warehouse.linkman',
               fieldLabel:'管理员姓名',
               anchor:'95%',
               allowBlank:false,
               maxLength: 20
           },{// 电话
               xtype:'textfield',
               id:'contact',
               name:'warehouse.contact',
               fieldLabel:'电话',
               anchor:'95%',
               maxLength: 20
           } 
           ,{
        	   xtype:'textfield',
        	   		id:'adderss',
        	   		name:'warehouse.adderss',
               fieldLabel:'地址',
               anchor:'95%',
               
               maxLength: 20
            }
           ,{
        	   xtype:'textareafield',
        				id:'note',
        				name:'warehouse.note',
               fieldLabel:'备注',
               anchor:'95%',
               //allowBlank:false,
               maxLength: 20
            }
         
           
           
           ],
        // Reset and Submit buttons
     buttons: [
            {
                text: '修改',   
                handler: function() {
                    var form = this.up('form').getForm();
                    if (form.isValid()) {
                    	// 发送请求
                    	form.submit({
            			waitMsg : '正在保存...', 
	                    success: function(form, action) {
	                      // Ext.Msg.alert('Success', action.result.success);
	                      
	                    								},
	                    failure: function(form, action) {
	                       // Ext.Msg.alert('Failed', action.result.msg);
							                    }
							                });
                    }
                }
            }]
        }]

	});